#ifndef LISTITEMBOX_H
#define LISTITEMBOX_H

#include <QWidget>

namespace Ui {
class ListItemBox;
}

class ListItemBox : public QWidget
{
    Q_OBJECT

public:
    explicit ListItemBox(QWidget *parent = nullptr);
    ~ListItemBox();

public:
    void setMusicName(const QString& MusicName);
    void setSingerName(const QString& SingerName);
    void setAblumName(const QString& AblumName);
    void setIcon(bool isLike);

protected:
    virtual void enterEvent(QEnterEvent* event)override;
    virtual void leaveEvent(QEvent*event)override;

private slots:
    void onLikeBtnCliked();

signals:
    void setIsLike(bool isLike);

private:
    Ui::ListItemBox *ui;
    bool _isLike;
};

#endif // LISTITEMBOX_H
